<section class="container">
  <div class="row">
    <%= render BlockScoutWeb.Account.CommonView, "_nav.html", conn: @conn, active_item: :transaction_tags %>
    <div class="col-sm-10">
      <div class="card">
        <div class="card-body" >
          <h1 class="card-title list-title-description header-account"><%= gettext "Add transaction tag"%></h1>
          <div class="col-sm-10 card-body-account">
            <%= form_for @tag_transaction, tag_transaction_path(@conn, :create), fn f -> %>
              <div class="form-group">
                <%= label f, :tx_hash, gettext("Transaction"), class: "control-label", style: "font-size: 14px" %>
                <%= text_input f, :tx_hash, class: "form-control", placeholder: "0x0000000000000000000000000000000000000000000000000000000000000000", maxlength: 66 %>
                <%= error_tag f, :tx_hash, class: "text-danger form-error" %>
                <%= error_tag f, :identity_id, class: "text-danger form-error" %>
              </div>

              <div class="form-group">
                <%= label f, :name, gettext("Name"), class: "control-label", style: "font-size: 14px" %>
                <%= text_input f, :name, class: "form-control", placeholder: gettext("Name this transaction"), maxlength: 35 %>
                <%= error_tag f, :name, class: "text-danger form-error" %>
              </div>

              <div class="form-group float-right form-input">
                <a class="btn btn-line"  href="<%= tag_transaction_path(@conn, :index) %>"><%= gettext "Back to Transaction Tags (Cancel)"%></a>
                <%= submit gettext("Save"), class: "save-transaction-tag-button button button-primary button-sm ml-3" %>
              </div>
            <% end %>
          </div>
        </div>
      </div>
    </div>
  </div>
</section>
